<!--
 * @Description: 下拉选择框
 * @Author: zhangwei
 * @Date: 2023-02-02 16:25:48
 * @LastEditTime: 2023-02-20 17:59:24
 * @LastEditors: zhangwei v-model="formObj[mdata.key]"
 这里把属性和数据项进行分离
-->
<template>
  <AttrCmpBase :mconfig="config">
    <el-select v-bind="config.attrs.selectAttrs" v-model="data[config.key]">
      <el-option
        v-for="(item, index) in config.attrs.options"
        :key="index"
        :label="item[config.attrs.optionAttrs.label]"
        :value="item[config.attrs.optionAttrs.value]"
      >
      </el-option>
    </el-select>
  </AttrCmpBase>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import AttrCmpMixins from "@/components-attr/AttrCmpMixin";

export default defineComponent({
  name: "ASelect",
  mixins: [AttrCmpMixins],
  emits: [],
  setup() {
    return {};
  },
});
</script>
<style scoped lang="scss"></style>
